package com.heima.wemedia.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDTO;
import com.heima.model.wemedia.dtos.WmNewsDTO;
import com.heima.model.wemedia.dtos.WmNewsPageReqDTO;
import com.heima.model.wemedia.pojos.WmNews;
public interface WmNewsService extends IService<WmNews> {
    /**
     * 查询所有自媒体文章
     * @return
     */
    public ResponseResult findList(NewsAuthDTO dto);
    public ResponseResult findList(WmNewsPageReqDTO dto);
    ResponseResult submitNews(WmNewsDTO dto);

    ResponseResult findById(String id);

    ResponseResult deleteNewsById(String id);

    ResponseResult downOrUpNews(WmNewsDTO dto);

    ResponseResult findWmNews(Integer id);

    ResponseResult authPass(NewsAuthDTO dto);

    ResponseResult authFail(NewsAuthDTO dto);
}